import glob
import carla

actor_list = [] 

try:
    client = carla.Client('127.0.0.1', 2000)              
    client.set_timeout(2.0)                                   
    world = client.get_world()                               
    blueprint_library = world.get_blueprint_library()          
    bp = blueprint_library.filter('model3')[0]               
    transform = carla.Transform(carla.Location(x=152.26979064941406, y=-103.86510467529297, z=2.0), carla.Rotation(yaw=-88.26685333251953))
    
    bp.set_attribute('role_name', 'static_vehicle')   
    vehicle = world.spawn_actor(bp, transform)                   
    vehicle.set_autopilot(False)                            
    actor_list.append(vehicle) 
    
except KeyboardInterrupt:
    for actor in actor_list:                                   
        actor.destroy()                                         
    print(' - Has destory static_vehicle')
